import request from '@/utils/request'

const api = {
  classify: '/posts/classify',
  role: '/member/role'
}

export default api

export function memberSearch (parameter) {
  return request({
    url: api.classify,
    method: 'get',
    params: parameter
  })
}

export function getRole () {
  return request({
    url: api.role,
    method: 'get'
  })
}
